package com.zheng.shop.dao.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author likun
 * @since 2017-12-29
 */
@TableName("shop_sku_attribute_sku")
public class ShopSkuAttributeSku extends Model<ShopSkuAttributeSku> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
	@TableField("sku_id")
	private Integer skuId;
	@TableField("sku_attribute_id")
	private Integer skuAttributeId;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getSkuId() {
		return skuId;
	}

	public void setSkuId(Integer skuId) {
		this.skuId = skuId;
	}

	public Integer getSkuAttributeId() {
		return skuAttributeId;
	}

	public void setSkuAttributeId(Integer skuAttributeId) {
		this.skuAttributeId = skuAttributeId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "ShopSkuAttributeSku{" +
			"id=" + id +
			", skuId=" + skuId +
			", skuAttributeId=" + skuAttributeId +
			"}";
	}
}
